#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char a[10] = "abc";
	printf("%s \n", a);
	char *b = "def";
	printf("%s \n", b);

	// char c[10] = b;	// failed: invalid initializer

	// char c[10];
	// c = b;		// error :error: assignment to expression with array type

	char c[10];
	strncpy(c, b, strlen(b) + 1);
	printf("%s \n", c);		// recommend

	return EXIT_SUCCESS;
}
